package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年07月21日 15时40分56秒
 */
@Table(name = "t_comment")
public class Comment extends BasePo {
	/**
	 * 属性查询列表
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_ITEMTYPE = "itemType";
	public static final String FIELD_ITEMID = "itemId";
	public static final String FIELD_USERID = "userId";
	public static final String FIELD_CONTENT = "content";
	public static final String FIELD_STATUS = "status";
	public static final String FIELD_CREATETIME = "createTime";
	public static final String FIELD_UPDATETIME = "updateTime";
	public static final String FIELD_TOPITEMTYPE = "topItemType";
	public static final String FIELD_TOPITEMID = "topItemId";
	public static final String FIELD_TOPCOMMENTID = "topCommentId";

	/**
	 * 列名查询列表
	 */
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_ITEM_TYPE = "item_type";
	public static final String COLUMN_ITEM_ID = "item_id";
	public static final String COLUMN_USER_ID = "user_id";
	public static final String COLUMN_CONTENT = "content";
	public static final String COLUMN_STATUS = "status";
	public static final String COLUMN_CREATE_TIME = "create_time";
	public static final String COLUMN_UPDATE_TIME = "update_time";
	public static final String COLUMN_TOP_ITEM_TYPE = "top_item_type";
	public static final String COLUMN_TOP_ITEM_ID = "top_item_id";
	public static final String COLUMN_TOP_COMMENT_ID = "top_comment_id";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;
	@Column(name = "item_type")
	private Short itemType;
	@Column(name = "item_id")
	private Long itemId;
	@Column(name = "user_id")
	private Long userId;
	@Column(name = "content")
	private String content;
	@Column(name = "status")
	private Short status;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "update_time")
	private Date updateTime;
	@Column(name = "top_item_type")
	private Short topItemType;
	@Column(name = "top_item_id")
	private Long topItemId;
	@Column(name = "top_comment_id")
	private Long topCommentId;

	/**
	 * 获取 主键
	 * 
	 * @return id - 主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置 主键
	 * 
	 * @param id
	 *            - 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取 评论的类型
	 * 
	 * @return itemType - 评论的类型
	 */
	public Short getItemType() {
		return itemType;
	}

	/**
	 * 设置 评论的类型
	 * 
	 * @param itemType
	 *            - 评论的类型
	 */
	public void setItemType(Short itemType) {
		this.itemType = itemType;
	}

	/**
	 * 获取 评论的对象
	 * 
	 * @return itemId - 评论的对象
	 */
	public Long getItemId() {
		return itemId;
	}

	/**
	 * 设置 评论的对象
	 * 
	 * @param itemId
	 *            - 评论的对象
	 */
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	/**
	 * 获取 评论用户
	 * 
	 * @return userId - 评论用户
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * 设置 评论用户
	 * 
	 * @param userId
	 *            - 评论用户
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * 获取 评论内容
	 * 
	 * @return content - 评论内容
	 */
	public String getContent() {
		return content;
	}

	/**
	 * 设置 评论内容
	 * 
	 * @param content
	 *            - 评论内容
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * 获取 评论状态
	 * 
	 * @return status - 评论状态
	 */
	public Short getStatus() {
		return status;
	}

	/**
	 * 设置 评论状态
	 * 
	 * @param status
	 *            - 评论状态
	 */
	public void setStatus(Short status) {
		this.status = status;
	}

	/**
	 * 获取 创建时间
	 * 
	 * @return createTime - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置 创建时间
	 * 
	 * @param createTime
	 *            - 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取 更新时间
	 * 
	 * @return updateTime - 更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * 设置 更新时间
	 * 
	 * @param updateTime
	 *            - 更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Short getTopItemType() {
		return topItemType;
	}

	public void setTopItemType(Short topItemType) {
		this.topItemType = topItemType;
	}

	public Long getTopItemId() {
		return topItemId;
	}

	public void setTopItemId(Long topItemId) {
		this.topItemId = topItemId;
	}

	public Long getTopCommentId() {
		return topCommentId;
	}

	public void setTopCommentId(Long topCommentId) {
		this.topCommentId = topCommentId;
	}
}